package com.digiwin.escloud.test.core.util;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONPObject;
import com.google.gson.*;

import java.lang.reflect.Type;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Set;

/**
 * @Author yanggld
 * @Date 2020/5/13-14:24
 */
public class JsonUtil {

	public static <T> T parseObject(String text, Class<T> clazz) {
		return JSONObject.parseObject(text, clazz);
	}

	public static String toJSONString(Object object){
		return JSONObject.toJSONString(object);
	}

}
